package com.tedu.egmybatis1.mapper;

import com.tedu.egmybatis1.pojo.Product;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ProductMapper {
    @Insert("INSERT INTO product(title,price,stock) " +
            "VALUES(#{title},#{price},#{stock})")
    int insertProduct(Product product);
}
